@extends('home.jicheng')

@section('content')
    <div style="width:1000px;margin:0 auto">
        <!-- Content Header (Page header) -->

        <!-- Main content -->
        <section class="content">
            <div class="row">
                <!-- left column -->
                <div class="col-md-12">
                    <!-- general form elements -->
                    <div class="box box-primary">
                        <!-- form start -->
                        <form role="form" action="{{ url('/home/forum/insert')}} " method="post" enctype="multipart/form-data">
                        	{{ csrf_field()}}

                            <div class="box-body">
	                            @if (count($errors) > 0)
								    <div class="alert alert-danger">
								        <ul>
								            @foreach ($errors->all() as $error)
								                <li>{{ $error }}</li>
								            @endforeach
								        </ul>
								    </div>
								@endif
                            <div class="form-group">
                                   留言:
                             </div>
                             @include("zhangmazi::ueditor")
                             <script id="ueditor_filed" name="fmpost" type="text/plain"></script>
                             <script>
                                var ueditor_full = UE.getEditor('ueditor_filed', {
                                'serverUrl' : '{{ route("zhangmazi_front_ueditor_service", ['_token' => csrf_token()]) }}'
                                });
                            </script>

                                 
                            </div><!-- /.box-body -->

                            <div class="box-footer">
                                <button type="submit" style="margin-left:500px;margin-top:10px;width:50px;height:25px" class="btn btn-primary">发表</button> 
                            </div>
                        </form>
                    </div><!-- /.box -->

                    <!-- Form Element sizes -->
                </div><!--/.col (left) -->
                <!-- right column -->
            </div>   <!-- /.row -->
        </section><!-- /.content -->
        </div>
    <script type="text/javascript">
    
        window.onload = function()
        {
            $('#info').fadeOut(1000);  
        }

    </script>
@endsection
